package com._51cto.healthy.mapper;

import com._51cto.healthy.base.BaseMapper;
import com._51cto.healthy.pojo.BackUps;
import com._51cto.healthy.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberMapper extends BaseMapper<Member> {

    List<Member> queryMember(@Param("query") String query);

    Map<String,String> selectMemberReportForPastSixMonth();

    BackUps queryById(@Param("deleteId")Integer id);

    void deleteById(@Param("id") Integer id);

//    客户端用户登录
    Member clientLogin(@Param("phoneNumber") String phoneNumber, @Param("password") String password);

    Member findUserByName(String phoneNumber);

    int clientRegister(Member member);

    Member findUserById(Integer id);

    int updateMemberById(Member member);
}
